import { getAllMembers } from "@/api/member";
import { Member } from "@/types/member";
import { defineStore } from "pinia";

const useMemberStore = defineStore('member', {
    state: () => {
        return {
            member: [] as Member[]
        }
    },
    actions: {
        async getMembers() {
            const result = await getAllMembers()
            this.member = result.data

        }
    }
})

export default useMemberStore